﻿using Windows.Admin.Domain;
using Windows.Infrastructure.Share.CustomException;
using Windows.Service.Share;

namespace Windows.Admin.Service
{
    public interface IPostLevelService
    {
        /// <summary>
        /// 获取职级列表基础资料
        /// </summary>
        /// <returns></returns>
        Task<List<PostLevelResponse>> GetBasicPostLevels();
        /// <summary>
        /// 职级视图
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PageResponse<PostLevelResponse>> Query(PageRequest<PostLevelRequest> request);
        /// <summary>
        /// 获取id的职级详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<PostLevelResponse> Detail(int id);
        /// <summary>
        /// 职级保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        /// <exception cref="ApiException"></exception>
        Task Save(PostLevelSaveRequest request);
        /// <summary>
        /// 职级删除
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Remove(IdsRequest request);
    }
    
}
